package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Hotel;
import cn.wolfcode.trip.base.mapper.HotelMapper;
import cn.wolfcode.trip.base.query.HotelQueryObject;
import cn.wolfcode.trip.base.service.IHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: Killua
 * @Date: 2018/10/11 22:24
 * @Description:
 */
@Service
public class HotelServiceImpl implements IHotelService {
    @Autowired
    private HotelMapper hotelMapper;

    @Override
    public List<Hotel> queryByAddressNameHotel(HotelQueryObject qo) {
        List<Hotel> hotels = hotelMapper.selectHotelByRegionName(qo);
        return hotels;

    }
}
